Beta-hydroxybutyrate calcium and magnesium salt